package com.stevenmoon.csdnplus.net;

/**
 * Created by WangJun on 2016/4/11.
 */
public class CSDNException extends Exception {

    public static final int CODE_BAD_REQUEST = 4000;
    public static final int CODE_UNAUTHORIZED = 4001;
    public static final int CODE_NET_ERROR = 1;

    private int mExpCode;

    public int getExpCode(){
        return mExpCode;
    }


    public CSDNException(String msg,int expCode){
        super(msg);
        this.mExpCode = expCode;
    }

    public CSDNException(String msg){
        this(msg,CODE_NET_ERROR);
    }

}
